import instance from "@/plugins/request";
import { ResponseData } from "@/interface/request"

export const login = (): Promise<ResponseData> => {
    return instance.request({
        url: '/login',
        method: 'post'
    })
}

export const getUser = (): Promise<ResponseData> => {
    return instance.request({
        url: '/getUser',
        method: 'post'
    })
}